#include "MaintenancesView.h"

MaintenancesView::MaintenancesView()
{
                   
 book = new BookView();
 user = new UserView();
 customer = new CustomerView();
 option = 0;
 utilities = null; 
                   
}

void MaintenancesView::show()
{
    utilities->clearScreen();
    utilities->printText(" Maintenances\n");
    utilities->printText("1. Maintenances Of Users\n");
    utilities->printText("2. Maintenances Of Books\n");
    utilities->printText("3. Maintenances Of Customers\n");
    utilities->printText("4. Exit\n");
    option = utilities->getInt("Choose The Option: ");
    
switch(option)
{
  case 1:
      user->show();
      break;
      
  case 2:
      book->show();
      break; 
                
  case 3: 
     customer->show();
     break;       
}
}
